//
//  RJHomeTopSectionView.h
//  AirQuality
//
//  Created by Po on 15/5/28.
//  Copyright (c) 2015年 Po. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol RJHomeTopSectionViewDelegate;

@interface RJHomeTopSectionView : UIView

@property (assign, nonatomic) id<RJHomeTopSectionViewDelegate> delegate;


- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray *)titles;

/**设置选中的选项编号*/
- (void)setSelectCount:(NSUInteger)count;
- (void)setSelectCount:(NSUInteger)count isLeft:(BOOL)isLeft;
@end

@protocol RJHomeTopSectionViewDelegate <NSObject>

/**选取了选项*/
- (BOOL)HomeTopSectionView:(RJHomeTopSectionView *)sectionView didSelectCount:(NSUInteger)count isLeft:(BOOL)isLeft;

@end
